Post

Replies

Boosts

Views

Activity

Defining Classes & its Scope
HiClass scope with swift and Xcode now became little confusing for me, for classes we dont use the words private and purblic whenwe define them anymore so my question is how to predict its scope, for example the ViewController file we add is it public for all theapplication ? and if I define a class inside it will it be public by default to all the application ?What if we define a class in its own file ? will it be public ? and is it better to define a class in its own file or inside a view controller ?--Kindest Regards
6
0
2.2k
Nov ’19
Swift Migrating
HiI have a macOS application with swift 3.x and I want to migrate it to Swift 5 with Xcode 11.2.1 but I get a window, but when I select the application icon in the navigator then I go to Edit -> Convert -> To Current Swift Syntex I get a window saying "no target to convert found" what does that means ? what Im doing wrong ?--Kindest Regards
1
0
569
Nov ’19
Showing Windows In Code
HiI have window1 and window2 in the main storyboard and window3 in a different storyboard, and I added button1 and button2on wibdow1, what code to write in the buttons actions to show window2 and window3 ? I want to know by code nit by optiondragining way.Kindest Regards
1
0
370
Nov ’19
Menu Linking to A Non Default View Controller Method
HiI created a new project for macOS I added methods to the default View Controller and it shows fine in the list that apears when control draging from a menu item to the responder, my question is how to link a menu item to a method in the second window View Controller ? cause theydont apear in the list when Control Draging from menu item to reponder ?Kindest Regards
12
0
1.7k
Nov ’19